package com.example.xmind2testcase.pojo;

import java.util.List;

public class XmindNode {

    private String id;       //  : string                    节点id
    private Integer index;    //  : integer                   节点序号
    private String topic;     //  : string                    节点主题
    private boolean isroot;    //  : boolean                   指示该节点是否为根节点
    private XmindNode parent;   //  : node                      该节点的父节点，根节点的父节目为 null ，但请不要根据此属性判断该节点是否为根节点
    private String direction; //  : enum(left,center,right)   该节点的分布位置
    private List<XmindNode> children;  //  : array of node             该节点的子节点组合
    private boolean expanded;  //  : boolean                   该节点的下级节点是否展开
    private Object data;      //  : object{string: object}     该节点的其它附加数据

    @Override
    public String toString() {
        return "XmindNode{" +
                "id='" + id + '\'' +
                ", index=" + index +
                ", topic='" + topic + '\'' +
                ", isroot=" + isroot +
                ", parent=" + parent +
                ", direction='" + direction + '\'' +
                ", children=" + children +
                ", expanded=" + expanded +
                ", data=" + data +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public boolean isIsroot() {
        return isroot;
    }

    public void setIsroot(boolean isroot) {
        this.isroot = isroot;
    }

    public XmindNode getParent() {
        return parent;
    }

    public void setParent(XmindNode parent) {
        this.parent = parent;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public List<XmindNode> getChildren() {
        return children;
    }

    public void setChildren(List<XmindNode> children) {
        this.children = children;
    }

    public boolean isExpanded() {
        return expanded;
    }

    public void setExpanded(boolean expanded) {
        this.expanded = expanded;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
